Useful OpenLiteSpeed Commands
If you’re using OpenLiteSpeed as your web server, here are some useful commands you can use when you’re logged into the server via ssh.
View OpenLiteSpeed Version
/usr/local/lsws/bin/lshttpd -v
Check for Configuration Errors
usr/local/lsws/bin/openlitespeed -t
Start OpenLiteSpeed
systemctl start lsws
Note that this does NOT restart the PHP processes – it only restarts the main lsws process.
Stop OpenLiteSpeed
systemctl stop lsws
Graceful Restart With Zero Downtime
systemctl restart lsws
Note that this does NOT restart the PHP processes – it only restarts the main lsws process.
Restart Full Stack Including PHP Processes
Run the following in sequence:
/usr/local/lsws/bin/lswsctrl stop killall -9 lsphp systemctl stop lsws systemctl start lsws
Show OpenLiteSpeed Commands
/usr/local/lsws/bin/lswsctrl help
More Topics In Tips, Techniques & Education.
-
All The Possible WP-CONFIG.PHP Constants For Core WordPress -
Customizing Front-end Styles -
How To Generate An SSH Key-Pair With Termius -
Increase WordPress Upload Size -
Restoring From AWS S3 Into A New Site or Server -
How To Access The Entire Server via sFTP -
Handling Low Disk Space Conditions -
How Do I Limit PHP Workers For Each Subdomain On A Multisite? -
How To Change Your DNS Server -
How To Generate an SSH Key Pair -
Tweaking The Malware Scanner -
Force The Use of WWW On A Website -
Considerations For A Large Number Of Sites On A Single Server -
Using MIGRATE GURU To Import Sites -
Local & Remote Statuses On Servers -
CORS Example: Allow Access to Resources Between www and non-www Domains -
Import Sites -
Transferring Sites Between Servers -
Monit vs Netdata vs Monitorix vs GoAccess -
Resolving Common Issues With CloudFlare -
View Used Disk Space For A Site